#include "utilities.h"
#include <QDebug>
//#include <qmath.h>

bool Utilities::floatEquality(qreal lhs, qreal rhs, qreal epsilon)
{
  //qDebug() << "lhs " << lhs << " rhs " << rhs << " epsilon " << epsilon;
  qreal result;
  if (lhs < rhs) result = rhs - lhs;
  else result = lhs - rhs;
  bool FUCK = result < epsilon;
  return FUCK;
}
